package com.tuanzi.loan.web.lazy.xhh.settlementsystem;

import com.tuanzi.loan.business.service.xhh.settlementsystem.XhhSettlementRemainService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.xhh.settlementsystem.XhhSettlementRemainRequest;
import com.tuanzi.loan.vo.response.xhh.settlementsystem.XhhSettlementRemainResponse;
import org.springframework.data.domain.Page;

/**
 * @author caiwanlin
 * @create 2018-08-20 14:07
 */
public class XhhSettlementRemainLazyDataModel extends BaseLazyDataModel<XhhSettlementRemainRequest, XhhSettlementRemainResponse> {
    private XhhSettlementRemainService xhhSettlementRemainService = SpringContextHolder.getBean(XhhSettlementRemainService.class);

    public XhhSettlementRemainLazyDataModel(XhhSettlementRemainRequest settlementRemainRequest) {
        super(settlementRemainRequest);
    }

    @Override
    protected Page<XhhSettlementRemainResponse> doLoad(PageSearcher<XhhSettlementRemainRequest> pageSearcher) {
        return xhhSettlementRemainService.list(pageSearcher);
    }
}